package cn.edu.hizee.gps.dao;

import cn.edu.hizee.gps.model.Admin;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;


public interface PublicRepository extends JpaRepository<Admin,Integer> {

   /**
     *@Make
     *@Author
     *@Date: 2018/11/19 17:13
     *@return
   **/
   @Query(value = "select b from Admin b where b.username = ?1 and b.password = ?2")
   Admin findByUsernameAndPassword(String username,String password);


}
